package cn.schoolwow.util.test.module.query.jsonarray.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.test.module.query.jsonarray.flow.group.InitialUserRoleNameJSONArrayDataFlow;
import cn.schoolwow.util.test.module.query.jsonarray.flow.group.JSONQueryGroupByFieldFlow;
import cn.schoolwow.util.test.module.query.jsonarray.flow.query.initialUserListDataJSONArrayFlow;

public class JSONQueryGroupByFieldTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new initialUserListDataJSONArrayFlow())
                .next(new InitialUserRoleNameJSONArrayDataFlow())
                .next(new JSONQueryGroupByFieldFlow())
                .execute();
    }

    @Override
    public String name() {
        return "JSON-根据指定字段分组测试用例";
    }
}
